package com.pactera.mavenweb.daoimpl;

import org.springframework.stereotype.Service;

import com.pactera.mavenweb.dao.IGenericDao;
import com.pactera.mavenweb.dao.GroupRoleDao;
import com.pactera.mavenweb.entity.GroupRole;

/**
 * GroupRoleDao实现类
 * @author SteveXIE
 *
 */
@Service("groupRoleDao")
public class GroupRoleDaoImpl extends GenericDaoImpl<GroupRole> implements
	GroupRoleDao {
	
	public GroupRoleDaoImpl() {
		super(GroupRole.class);
	}

//	@Override
	@SuppressWarnings("unchecked")
	public int saveGroupRole(GroupRole groupRole) {
		try {
			this.insert(groupRole);
			return 0;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}